﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OrderingFoot.Entities;

namespace OrderingFoot.Repositories.Mappings
{
    /// <summary>
    /// 商品
    /// </summary>
    public class ProductMap : IEntityTypeConfiguration<Product>
    {
        /// <summary>
        /// Configure
        /// </summary>
        public void Configure(EntityTypeBuilder<Product> builder)
        {
            builder.ToTable("Product").HasKey(p => p.ID);
        }
    }
}
